<div class="pad-10" >

	<div class="navigate">
		<h1>留言列表</h1>
  	</div>

    <div class="explain-col">
      	
      	&nbsp;查询条件:
    	<select id="search">
    	<volist name="message_search" id="s">
    		<option value="{$s.item}" <if condition="$search eq $s['item']">selected="selected"</if>>{$s.name}</option>
    	</volist>
    	</select>
    	
        &nbsp;关键字 :
        <input id="keywords" name="keywords" type="text" class="input-text" size="25" value="{$keywords}" />
        <input type="button" id="btnSearch" name="btnSearch" class="button" value="搜索" />
	</div>

				
    <form id="myform" name="myform" action="{:u('Items/delete')}" method="post">
    <div class="table-list">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width="8%">留言编号</th>
                <th width=80>会员</th>
                <th width=80>手机号</th>
                <th width=80>留言类型</th>
                <th width=180>主题</th>           
                <th width=300>内容</th>
                <th width=80>留言时间</th>
                <th width=60>状态</th>
                <th width=60>操作</th>
            </tr>
        </thead>
    	<tbody>
        <volist name="messages" id="m">
        <tr>
        	<td class="tc">{$m.id}</td>
            <td class="tc">{$m.user_name}</td>
            <td class="tc">{$m.mobile_phone}</td>
            <td class="tc">{$m.type_name}</td>
            <td class="tl">{$m.title}</td>
            <td class="tc">
            	<textarea rows="1" cols="60">{$m.content}</textarea>
            </td>
            <td class="tc">{$m.created}</td>
            <td class="tc">
            	<if condition="$m.status eq 1">
					<span class="color-red">待处理</span>
				<elseif condition="$m.status eq 2"/>
					<span class="color-blue">处理中</span>
				<elseif condition="$m.status eq 3"/>
					<span class="color-green">已完成</span>
				</if>
				
            
            </td>
            <td align="center">
            	<a href="/index.php/Admin/Message/detail?id={$m.id}" target="_self">回复</a>
            </td>
        </tr>
        </volist>
    	</tbody>
    </table>

    <div class="btn">
		<include file="Common:pager" />
    </div>
    
    </div>
    </form>
</div>

<script type="text/javascript" src="/Js/adm/message/index.js"></script>